﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Chapter01
{
    /// <summary>
    /// Interaction logic for Window2.xaml
    /// </summary>
    public partial class Window2 : Window
    {
        public Window2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            RadialGradientBrush aBrush;
            aBrush = (RadialGradientBrush)button1.FindResource("myBrush");
            aBrush.GradientStops[0].Color = Colors.Green;
            SolidColorBrush anotherBrush;
            anotherBrush = (SolidColorBrush)this.Resources["BlueBrush"];
            //aBrush.GradientStops[0].Color = Color.
        }
    }
}
